package com.ebupt.migu.music.approve.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ebupt.migu.music.strategy.entity.SMSApproveRankInfoBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author liuyangyang@e-byte.com
 * @description: TODO
 * @date 2023/7/21 15:51
 */
@Mapper
@DS("mysql_mg")
public interface SMSApproveRankInfoMapper {

    /**
     * 创建短信审核顺序记录
     *
     * @param rank
     */
    public void insertSMSApproveRankInfo(SMSApproveRankInfoBean rank);

    /**
     * 通过活动ID查询审核人信息：审核状态未“未审核”
     *
     * @param activityId
     * @return
     */
    public HashMap<String, Object> selectOneByActivityId(String activityId);

    /**
     * 查询审核序列
     *
     * @param activityId
     * @return
     */
    public List<HashMap<String, Object>> queryByActivityId(String activityId);

    /**
     * 更新当前审核人审核状态
     *
     */
    public void updateSMSApproveRankInfoStatus(Map<String, Object> map);

    /**
     * 删除活动审核人排序信息
     *
     * @param activityId
     */
    public void deleteSMSApproveRankInfoByActivityID(String activityId);

    public List<HashMap<String, Object>> selectAllByActivityId(String activityId);
}
